WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::SolverManager Class Referenceabstract

Solver manager for WOLF. More...

#include <core/solver/solver_manager.h>

Inheritance diagram for wolf::SolverManager:
[legend]

Public Types

enum class  CovarianceBlocksToBeComputed : std::size_t {
  ALL = 0 , ALL_MARGINALS = 1 , ROBOT_LANDMARKS = 2 , GAUSS = 3 ,
  GAUSS_TUCAN = 4 , GAUSS_TUCAN_ONLY_POSITION = 5
}
 Enumeration of covariance blocks to be computed. More...
 
enum class  ReportVerbosity : std::size_t { QUIET = 0 , BRIEF = 1 , FULL = 2 }
 Enumeration for the verbosity of the solver report. More...
 

Public Member Functions

void printProfiling (std::ostream &stream=std::cout) const
 Prints the profiling of the solver manager (and of the derived solver) More...
 
const ProfilingUnit & getProfilingTotal () const
 Returns the profiling of solve(): update problem, solve and update state. More...
 
const ProfilingUnit & getProfilingSolve () const
 Returns the profiling of the solving. More...
 
const ProfilingUnit & getProfilingUpdate () const
 Returns the profiling of the problem update. More...
 
const ProfilingUnit & getProfilingState () const
 Returns the profiling of the state update. More...
 
const ProfilingUnit & getProfilingCov () const
 Returns the profiling of the covariances computation. More...
 
 SolverManager (const ProblemPtr &_problem)
 Constructor with default params_. More...
 
 SolverManager (const ProblemPtr &_problem, const YAML::Node &_params)
 Constructor with given params_. More...
 
virtual ~SolverManager ()
 Destructor. More...
 
std::string solve ()
 Solves with the verbosity defined in params_. More...
 
std::string solve (const ReportVerbosity report_level)
 Solves with a given verbosity. More...
 
virtual bool computeCovariances () final
 Computes the covariances of the blocks specified in the parameters. Returns whether it succeeded. More...
 
virtual bool computeCovariances (const CovarianceBlocksToBeComputed blocks) final
 Computes the covariances of the specified blocks. Returns whether it succeeded. More...
 
virtual bool computeCovariances (const std::vector< StateBlockPtr > &st_list) final
 Computes the covariances (and cross-covariances) of a list of state blocks. Returns whether it succeeded. More...
 
virtual void update ()
 Updates solver's problem according to the wolf_problem. More...
 
ProblemPtr getProblem ()
 Returns the wolf problem. More...
 
YAML::Node getParams () const
 Returns a copy of the YAML parameters. More...
 
bool getComputeCov () const
 Returns whether the covariances are computed in the solver loop. More...
 
double getPeriod () const
 Returns the period of the solver loop. More...
 
double getCovPeriod () const
 Returns the period of the covariances computation in the solver loop. More...
 
ReportVerbosity getVerbosity () const
 Returns the verbosity of the solver report. More...
 
virtual bool isStateBlockRegistered (const StateBlockPtr &state_ptr) const final
 Returns whether a state block is registered in the solver. More...
 
virtual bool isStateBlockFloating (const StateBlockPtr &state_ptr) const final
 Returns whether a state block is floating: not involved in any factor, so kept out of the solver. More...
 
virtual bool isStateBlockFixed (const StateBlockPtr &st) const final
 Returns whether a registered state block is fixed in the solver. More...
 
virtual bool isFactorRegistered (const FactorBasePtr &fac_ptr) const final
 Returns whether a factor is registered in the solver. More...
 
virtual bool hasThisLocalParametrization (const StateBlockPtr &st, const LocalParametrizationBasePtr &local_param) const final
 Returns whether a state block has a given local parametrization in the solver. More...
 
virtual bool hasLocalParametrization (const StateBlockPtr &st) const final
 Returns whether a state block has a local parametrization in the solver. More...
 
virtual int numFactors () const final
 Returns the number of registered factors. More...
 
virtual int sizeFactors () const final
 Returns the total residual size of the registered factors. More...
 
virtual int numStateBlocks () const final
 Returns the number of state blocks (registered and floating) More...
 
virtual int sizeStateBlocks () const final
 Returns the total size of the state blocks (registered and floating) More...
 
virtual int numStateBlocksEstimated () const final
 Returns the number of estimated state blocks: registered and not fixed. More...
 
virtual int sizeStateBlocksEstimated () const final
 Returns the total size of the estimated state blocks: registered and not fixed. More...
 
virtual int numFactorsDerived () const =0
 Returns the number of factors in the derived solver. More...
 
virtual int sizeFactorsDerived () const =0
 Returns the total residual size of the factors in the derived solver. More...
 
virtual int numStateBlocksEstimatedDerived () const =0
 Returns the number of estimated state blocks in the derived solver. More...
 
virtual int sizeStateBlocksEstimatedDerived () const =0
 Returns the total size of the estimated state blocks in the derived solver. More...
 
virtual bool check (std::string prefix="") const final
 Checks the consistency of the solver manager and of the derived solver. More...
 
virtual bool converged () const =0
 Returns whether the last solve converged. More...
 
virtual bool failed () const =0
 Returns whether the last solve failed. More...
 
virtual bool wasStopped () const =0
 Returns whether the last solve was stopped (interrupted by a problem change) More...
 
virtual unsigned int iterations () const =0
 Returns the number of iterations of the last solve. More...
 
virtual double initialCost () const =0
 Returns the initial cost of the last solve. More...
 
virtual double finalCost () const =0
 Returns the final cost of the last solve. More...
 
virtual double totalTime () const =0
 Returns the total time of the last solve. More...
 
virtual void run () final
 Runs the solver loop in a separate thread. More...
 
virtual void stop () final
 Stops the solver loop and joins its thread. More...
 

Static Public Member Functions

static SolverManagerPtr autoSetup (const ProblemPtr &_problem, const std::string &_input_yaml_file, std::vector< std::string > _primary_schema_folders, bool _skip_yaml_validation=false)
 Creates a solver from a YAML file (see the YAML node version) More...
 
static SolverManagerPtr autoSetup (const ProblemPtr &_problem, YAML::Node _param_node, std::vector< std::string > _primary_schema_folders, bool _skip_yaml_validation=false)
 Creates a solver from a YAML node (or its 'solver' key), validated against the schemas unless skipped. More...
 

Protected Member Functions

virtual Eigen::VectorXd & getAssociatedMemBlock (const StateBlockPtr &state_ptr)
 Returns the state vector of a registered state block used by the solver. More...
 
const double * getAssociatedMemBlockPtr (const StateBlockPtr &state_ptr) const
 Returns a pointer to the state vector of a registered state block used by the solver. More...
 
double * getAssociatedMemBlockPtr (const StateBlockPtr &state_ptr)
 Returns a pointer to the state vector of a registered state block used by the solver. More...
 
virtual std::string solveDerived (const ReportVerbosity report_level)=0
 Solves the problem in the derived solver, returning the report. More...
 
virtual bool computeCovariancesDerived (const CovarianceBlocksToBeComputed blocks)=0
 Computes the covariances of the specified blocks in the derived solver. More...
 
virtual bool computeCovariancesDerived (const std::vector< StateBlockPtr > &st_list)=0
 Computes the covariances of a list of state blocks in the derived solver. More...
 
virtual void addFactorDerived (const FactorBasePtr &fac_ptr)=0
 Adds a factor to the derived solver. More...
 
virtual void removeFactorDerived (const FactorBasePtr &fac_ptr)=0
 Removes a factor from the derived solver. More...
 
virtual void addStateBlockDerived (const StateBlockPtr &state_ptr)=0
 Adds a state block to the derived solver. More...
 
virtual void removeStateBlockDerived (const StateBlockPtr &state_ptr)=0
 Removes a state block from the derived solver. More...
 
virtual void updateStateBlockStatusDerived (const StateBlockPtr &state_ptr)=0
 Updates the fixed/unfixed status of a state block in the derived solver. More...
 
virtual void updateStateBlockLocalParametrizationDerived (const StateBlockPtr &state_ptr)=0
 Updates the local parametrization of a state block in the derived solver. More...
 
virtual bool isStateBlockRegisteredDerived (const StateBlockPtr &state_ptr) const =0
 Returns whether a state block is in the derived solver. More...
 
virtual bool isFactorRegisteredDerived (const FactorBasePtr &fac_ptr) const =0
 Returns whether a factor is in the derived solver. More...
 
virtual bool isStateBlockFixedDerived (const StateBlockPtr &st) const =0
 Returns whether a state block is fixed in the derived solver. More...
 
virtual bool hasLocalParametrizationDerived (const StateBlockPtr &st) const =0
 Returns whether a state block has a local parametrization in the derived solver. More...
 
virtual bool hasThisLocalParametrizationDerived (const StateBlockPtr &st, const LocalParametrizationBasePtr &local_param) const =0
 Returns whether a state block has a given local parametrization in the derived solver. More...
 
virtual void printProfilingDerived (std::ostream &stream=std::cout) const =0
 Prints the profiling of the derived solver. More...
 
virtual bool checkDerived (std::string prefix="") const =0
 Checks the consistency of the derived solver. More...
 

Protected Attributes

ProblemPtr wolf_problem_
 Wolf problem. More...
 
ProfilingUnit profiling_total_
 Profiling units of solve(), solving, problem update, state update and covariances computation. More...
 
ProfilingUnit profiling_solve_
 Solving. More...
 
ProfilingUnit profiling_update_
 Problem update. More...
 
ProfilingUnit profiling_state_
 State update. More...
 
ProfilingUnit profiling_cov_
 Covariances computation. More...
 
YAML::Node params_
 YAML parameters. More...
 
std::map< StateBlockPtr, Eigen::VectorXd > state_blocks_
 Registered state blocks and solver states. More...
 
std::map< StateBlockPtr, FactorBasePtrList > state_blocks_2_factors_
 Factors of each registered state block. More...
 
std::set< FactorBasePtr > factors_
 Registered factors. More...
 
std::set< StateBlockPtr > floating_state_blocks_
 State blocks not involved in any factor. More...
 
double period_
 Period of the solver loop. More...
 
ReportVerbosity verbose_
 Verbosity of the solver report. More...
 
bool compute_cov_
 Whether the covariances are computed in the solver loop. More...
 
CovarianceBlocksToBeComputed cov_enum_
 Covariance blocks computed in the solver loop. More...
 
double cov_period_
 Period of the covariances computation in the solver loop. More...
 
std::chrono::high_resolution_clock::time_point last_cov_time_
 Time of the last covariances computation. More...
 
bool stopping_
 Whether the solver loop has to stop. More...
 

Detailed Description

Solver manager for WOLF.

Member Enumeration Documentation

◆ CovarianceBlocksToBeComputed

enum class wolf::SolverManager::CovarianceBlocksToBeComputed : std::size_t
strong

Enumeration of covariance blocks to be computed.

Enumerator
ALL 

All frame and landmark state blocks and their cross-covariances.

ALL_MARGINALS 

Marginal of each frame and landmark (with its cross-covariances)

ROBOT_LANDMARKS 

Marginals of landmarks and current robot pose plus cross covariances of current robot and all landmarks

GAUSS 

GAUSS: last frame P and V.

GAUSS_TUCAN 

GAUSS: last frame P, O, V and T.

GAUSS_TUCAN_ONLY_POSITION 

GAUSS: last frame P and T.

◆ ReportVerbosity

enum class wolf::SolverManager::ReportVerbosity : std::size_t
strong

Enumeration for the verbosity of the solver report.

Enumerator
QUIET 

No report.

BRIEF 

Brief report.

FULL 

Full report.

Constructor & Destructor Documentation

◆ SolverManager() [1/2]

wolf::SolverManager::SolverManager ( const ProblemPtr &  _problem)

Constructor with default params_.

◆ SolverManager() [2/2]

wolf::SolverManager::SolverManager ( const ProblemPtr &  _problem,
const YAML::Node &  _params 
)

Constructor with given params_.

◆ ~SolverManager()

wolf::SolverManager::~SolverManager ( )
virtual

Destructor.

Member Function Documentation

◆ addFactorDerived()

virtual void wolf::SolverManager::addFactorDerived ( const FactorBasePtr &  fac_ptr)
protectedpure virtual

Adds a factor to the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ addStateBlockDerived()

virtual void wolf::SolverManager::addStateBlockDerived ( const StateBlockPtr &  state_ptr)
protectedpure virtual

Adds a state block to the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ autoSetup() [1/2]

SolverManagerPtr wolf::SolverManager::autoSetup ( const ProblemPtr &  _problem,
const std::string &  _input_yaml_file,
std::vector< std::string >  _primary_schema_folders,
bool  _skip_yaml_validation = false 
)
static

Creates a solver from a YAML file (see the YAML node version)

◆ autoSetup() [2/2]

SolverManagerPtr wolf::SolverManager::autoSetup ( const ProblemPtr &  _problem,
YAML::Node  _param_node,
std::vector< std::string >  _primary_schema_folders,
bool  _skip_yaml_validation = false 
)
static

Creates a solver from a YAML node (or its 'solver' key), validated against the schemas unless skipped.

◆ check()

bool wolf::SolverManager::check ( std::string  prefix = "") const
finalvirtual

Checks the consistency of the solver manager and of the derived solver.

◆ checkDerived()

virtual bool wolf::SolverManager::checkDerived ( std::string  prefix = "") const
protectedpure virtual

Checks the consistency of the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ computeCovariances() [1/3]

bool wolf::SolverManager::computeCovariances ( )
finalvirtual

Computes the covariances of the blocks specified in the parameters. Returns whether it succeeded.

◆ computeCovariances() [2/3]

bool wolf::SolverManager::computeCovariances ( const CovarianceBlocksToBeComputed  blocks)
finalvirtual

Computes the covariances of the specified blocks. Returns whether it succeeded.

◆ computeCovariances() [3/3]

bool wolf::SolverManager::computeCovariances ( const std::vector< StateBlockPtr > &  st_list)
finalvirtual

Computes the covariances (and cross-covariances) of a list of state blocks. Returns whether it succeeded.

◆ computeCovariancesDerived() [1/2]

virtual bool wolf::SolverManager::computeCovariancesDerived ( const CovarianceBlocksToBeComputed  blocks)
protectedpure virtual

Computes the covariances of the specified blocks in the derived solver.

Implemented in wolf::SolverEigen, and wolf::SolverCeres.

◆ computeCovariancesDerived() [2/2]

virtual bool wolf::SolverManager::computeCovariancesDerived ( const std::vector< StateBlockPtr > &  st_list)
protectedpure virtual

Computes the covariances of a list of state blocks in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ converged()

virtual bool wolf::SolverManager::converged ( ) const
pure virtual

Returns whether the last solve converged.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ failed()

virtual bool wolf::SolverManager::failed ( ) const
pure virtual

Returns whether the last solve failed.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ finalCost()

virtual double wolf::SolverManager::finalCost ( ) const
pure virtual

Returns the final cost of the last solve.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ getAssociatedMemBlock()

Eigen::VectorXd & wolf::SolverManager::getAssociatedMemBlock ( const StateBlockPtr &  state_ptr)
protectedvirtual

Returns the state vector of a registered state block used by the solver.

◆ getAssociatedMemBlockPtr() [1/2]

double * wolf::SolverManager::getAssociatedMemBlockPtr ( const StateBlockPtr &  state_ptr)
protected

Returns a pointer to the state vector of a registered state block used by the solver.

◆ getAssociatedMemBlockPtr() [2/2]

const double * wolf::SolverManager::getAssociatedMemBlockPtr ( const StateBlockPtr &  state_ptr) const
protected

Returns a pointer to the state vector of a registered state block used by the solver.

◆ getComputeCov()

bool wolf::SolverManager::getComputeCov ( ) const

Returns whether the covariances are computed in the solver loop.

◆ getCovPeriod()

double wolf::SolverManager::getCovPeriod ( ) const

Returns the period of the covariances computation in the solver loop.

◆ getParams()

YAML::Node wolf::SolverManager::getParams ( ) const

Returns a copy of the YAML parameters.

◆ getPeriod()

double wolf::SolverManager::getPeriod ( ) const

Returns the period of the solver loop.

◆ getProblem()

wolf::ProblemPtr wolf::SolverManager::getProblem ( )

Returns the wolf problem.

◆ getProfilingCov()

const ProfilingUnit & wolf::SolverManager::getProfilingCov ( ) const

Returns the profiling of the covariances computation.

◆ getProfilingSolve()

const ProfilingUnit & wolf::SolverManager::getProfilingSolve ( ) const

Returns the profiling of the solving.

◆ getProfilingState()

const ProfilingUnit & wolf::SolverManager::getProfilingState ( ) const

Returns the profiling of the state update.

◆ getProfilingTotal()

const ProfilingUnit & wolf::SolverManager::getProfilingTotal ( ) const

Returns the profiling of solve(): update problem, solve and update state.

◆ getProfilingUpdate()

const ProfilingUnit & wolf::SolverManager::getProfilingUpdate ( ) const

Returns the profiling of the problem update.

◆ getVerbosity()

SolverManager::ReportVerbosity wolf::SolverManager::getVerbosity ( ) const

Returns the verbosity of the solver report.

◆ hasLocalParametrization()

bool wolf::SolverManager::hasLocalParametrization ( const StateBlockPtr &  st) const
finalvirtual

Returns whether a state block has a local parametrization in the solver.

◆ hasLocalParametrizationDerived()

virtual bool wolf::SolverManager::hasLocalParametrizationDerived ( const StateBlockPtr &  st) const
protectedpure virtual

Returns whether a state block has a local parametrization in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ hasThisLocalParametrization()

bool wolf::SolverManager::hasThisLocalParametrization ( const StateBlockPtr &  st,
const LocalParametrizationBasePtr &  local_param 
) const
finalvirtual

Returns whether a state block has a given local parametrization in the solver.

◆ hasThisLocalParametrizationDerived()

virtual bool wolf::SolverManager::hasThisLocalParametrizationDerived ( const StateBlockPtr &  st,
const LocalParametrizationBasePtr &  local_param 
) const
protectedpure virtual

Returns whether a state block has a given local parametrization in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ initialCost()

virtual double wolf::SolverManager::initialCost ( ) const
pure virtual

Returns the initial cost of the last solve.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ isFactorRegistered()

bool wolf::SolverManager::isFactorRegistered ( const FactorBasePtr &  fac_ptr) const
finalvirtual

Returns whether a factor is registered in the solver.

◆ isFactorRegisteredDerived()

virtual bool wolf::SolverManager::isFactorRegisteredDerived ( const FactorBasePtr &  fac_ptr) const
protectedpure virtual

Returns whether a factor is in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ isStateBlockFixed()

bool wolf::SolverManager::isStateBlockFixed ( const StateBlockPtr &  st) const
finalvirtual

Returns whether a registered state block is fixed in the solver.

◆ isStateBlockFixedDerived()

virtual bool wolf::SolverManager::isStateBlockFixedDerived ( const StateBlockPtr &  st) const
protectedpure virtual

Returns whether a state block is fixed in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ isStateBlockFloating()

bool wolf::SolverManager::isStateBlockFloating ( const StateBlockPtr &  state_ptr) const
finalvirtual

Returns whether a state block is floating: not involved in any factor, so kept out of the solver.

◆ isStateBlockRegistered()

bool wolf::SolverManager::isStateBlockRegistered ( const StateBlockPtr &  state_ptr) const
finalvirtual

Returns whether a state block is registered in the solver.

◆ isStateBlockRegisteredDerived()

virtual bool wolf::SolverManager::isStateBlockRegisteredDerived ( const StateBlockPtr &  state_ptr) const
protectedpure virtual

Returns whether a state block is in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ iterations()

virtual unsigned int wolf::SolverManager::iterations ( ) const
pure virtual

Returns the number of iterations of the last solve.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ numFactors()

int wolf::SolverManager::numFactors ( ) const
finalvirtual

Returns the number of registered factors.

◆ numFactorsDerived()

virtual int wolf::SolverManager::numFactorsDerived ( ) const
pure virtual

Returns the number of factors in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ numStateBlocks()

int wolf::SolverManager::numStateBlocks ( ) const
finalvirtual

Returns the number of state blocks (registered and floating)

◆ numStateBlocksEstimated()

int wolf::SolverManager::numStateBlocksEstimated ( ) const
finalvirtual

Returns the number of estimated state blocks: registered and not fixed.

◆ numStateBlocksEstimatedDerived()

virtual int wolf::SolverManager::numStateBlocksEstimatedDerived ( ) const
pure virtual

Returns the number of estimated state blocks in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ printProfiling()

void wolf::SolverManager::printProfiling ( std::ostream &  stream = std::cout) const

Prints the profiling of the solver manager (and of the derived solver)

◆ printProfilingDerived()

virtual void wolf::SolverManager::printProfilingDerived ( std::ostream &  stream = std::cout) const
protectedpure virtual

Prints the profiling of the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ removeFactorDerived()

virtual void wolf::SolverManager::removeFactorDerived ( const FactorBasePtr &  fac_ptr)
protectedpure virtual

Removes a factor from the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ removeStateBlockDerived()

virtual void wolf::SolverManager::removeStateBlockDerived ( const StateBlockPtr &  state_ptr)
protectedpure virtual

Removes a state block from the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ run()

void wolf::SolverManager::run ( )
finalvirtual

Runs the solver loop in a separate thread.

◆ sizeFactors()

int wolf::SolverManager::sizeFactors ( ) const
finalvirtual

Returns the total residual size of the registered factors.

◆ sizeFactorsDerived()

virtual int wolf::SolverManager::sizeFactorsDerived ( ) const
pure virtual

Returns the total residual size of the factors in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ sizeStateBlocks()

int wolf::SolverManager::sizeStateBlocks ( ) const
finalvirtual

Returns the total size of the state blocks (registered and floating)

◆ sizeStateBlocksEstimated()

int wolf::SolverManager::sizeStateBlocksEstimated ( ) const
finalvirtual

Returns the total size of the estimated state blocks: registered and not fixed.

◆ sizeStateBlocksEstimatedDerived()

virtual int wolf::SolverManager::sizeStateBlocksEstimatedDerived ( ) const
pure virtual

Returns the total size of the estimated state blocks in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ solve() [1/2]

std::string wolf::SolverManager::solve ( )

Solves with the verbosity defined in params_.

◆ solve() [2/2]

std::string wolf::SolverManager::solve ( const ReportVerbosity  report_level)

Solves with a given verbosity.

◆ solveDerived()

virtual std::string wolf::SolverManager::solveDerived ( const ReportVerbosity  report_level)
protectedpure virtual

Solves the problem in the derived solver, returning the report.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ stop()

void wolf::SolverManager::stop ( )
finalvirtual

Stops the solver loop and joins its thread.

◆ totalTime()

virtual double wolf::SolverManager::totalTime ( ) const
pure virtual

Returns the total time of the last solve.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ update()

void wolf::SolverManager::update ( )
virtual

Updates solver's problem according to the wolf_problem.

◆ updateStateBlockLocalParametrizationDerived()

virtual void wolf::SolverManager::updateStateBlockLocalParametrizationDerived ( const StateBlockPtr &  state_ptr)
protectedpure virtual

Updates the local parametrization of a state block in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ updateStateBlockStatusDerived()

virtual void wolf::SolverManager::updateStateBlockStatusDerived ( const StateBlockPtr &  state_ptr)
protectedpure virtual

Updates the fixed/unfixed status of a state block in the derived solver.

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

◆ wasStopped()

virtual bool wolf::SolverManager::wasStopped ( ) const
pure virtual

Returns whether the last solve was stopped (interrupted by a problem change)

Implemented in wolf::SolverCeres, and wolf::SolverEigen.

Member Data Documentation

◆ compute_cov_

bool wolf::SolverManager::compute_cov_
protected

Whether the covariances are computed in the solver loop.

◆ cov_enum_

CovarianceBlocksToBeComputed wolf::SolverManager::cov_enum_
protected

Covariance blocks computed in the solver loop.

◆ cov_period_

double wolf::SolverManager::cov_period_
protected

Period of the covariances computation in the solver loop.

◆ factors_

std::set<FactorBasePtr> wolf::SolverManager::factors_
protected

Registered factors.

◆ floating_state_blocks_

std::set<StateBlockPtr> wolf::SolverManager::floating_state_blocks_
protected

State blocks not involved in any factor.

◆ last_cov_time_

std::chrono::high_resolution_clock::time_point wolf::SolverManager::last_cov_time_
protected

Time of the last covariances computation.

◆ params_

YAML::Node wolf::SolverManager::params_
protected

YAML parameters.

◆ period_

double wolf::SolverManager::period_
protected

Period of the solver loop.

◆ profiling_cov_

ProfilingUnit wolf::SolverManager::profiling_cov_
protected

Covariances computation.

◆ profiling_solve_

ProfilingUnit wolf::SolverManager::profiling_solve_
protected

Solving.

◆ profiling_state_

ProfilingUnit wolf::SolverManager::profiling_state_
protected

State update.

◆ profiling_total_

ProfilingUnit wolf::SolverManager::profiling_total_
protected

Profiling units of solve(), solving, problem update, state update and covariances computation.

Whole solve()

◆ profiling_update_

ProfilingUnit wolf::SolverManager::profiling_update_
protected

Problem update.

◆ state_blocks_

std::map<StateBlockPtr, Eigen::VectorXd> wolf::SolverManager::state_blocks_
protected

Registered state blocks and solver states.

◆ state_blocks_2_factors_

std::map<StateBlockPtr, FactorBasePtrList> wolf::SolverManager::state_blocks_2_factors_
protected

Factors of each registered state block.

◆ stopping_

bool wolf::SolverManager::stopping_
protected

Whether the solver loop has to stop.

◆ verbose_

ReportVerbosity wolf::SolverManager::verbose_
protected

Verbosity of the solver report.

◆ wolf_problem_

ProblemPtr wolf::SolverManager::wolf_problem_
protected

Wolf problem.


The documentation for this class was generated from the following files: